-- GENERATED SPELL FOR [Makrinni Scrabbler] --


function spell0_6370(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6370', 7000, 1)
end

function spell1_6370(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_6370', 3500, 1)
end

function Sorts_6370(pUnit, Event)
local choix_sorts_6370 = math.random(0, 1)
if choix_sorts_6370 == 0 then
pUnit:RegisterEvent('spell0_6370', 1, 1)
end
if choix_sorts_6370 == 1 then
pUnit:RegisterEvent('spell1_6370', 1, 1)
end
end

function mob6370_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6370', math.random(1500, 3000), 1)
end

function mob6370_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6370_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6370_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6370, 1, 'mob6370_Action')
RegisterUnitEvent(6370, 2, 'mob6370_Leave')
RegisterUnitEvent(6370, 3, 'mob6370_Kill')
RegisterUnitEvent(6370, 4, 'mob6370_Die')
